#include "lvgl.h"
#include "GUI_config.h"
#include "GUI_Style.h"
#include "GUI_Start.h"

#include "GUI_TabBar.h"
#include "GUI_Card.h"


//GUI界面开始入口
lv_obj_t * GUI_Start(lv_obj_t * father){
    lv_obj_t * win = lv_obj_create(father);
    GUI_Clear_Style(win);
    lv_obj_set_size(win,GUI_SCREEN_WIDTH,GUI_SCREEN_HEIGHT);
    lv_obj_set_style_bg_color(win,GUI_THEME_BG_COLOR01,LV_STATE_DEFAULT);
    lv_obj_t * tabBar = GUI_MainTabBar_Create(win);
    lv_obj_t * card01 = GUI_Card_Create(GUI_MainTabBar_Get_Content(tabBar,0));
    lv_obj_set_width(card01,GUI_SCREEN_WIDTH - GUI_TABBAR_SIZE - 50);
    lv_obj_center(card01);
    lv_obj_t * obj = GUI_DropDown_Create(card01);
    lv_dropdown_clear_options(obj);
    lv_obj_set_width(obj,200);
    lv_obj_center(obj);
    lv_dropdown_add_option(obj,"text",0);
    lv_dropdown_add_option(obj,"text",1);
    return win;
}

